- HOME
- [종료]구루비 Dev 스터디
- 2012년 하반기 - 자바기반의 웹 개발 멘토링 스터디
- eclipse 유용한 TIP 소개
eclipse 유용한 TIP 소개
1. Eclipse Code Templates
- 이클립스에서 표준화된 코딩 컨벤션 적용을 위해서 Code Template과 Formatter를 사용한다.
- 표준화된 Java Doc 주석을 생성 하여, 프로젝트에서 주석을 통일 할 수 있다.
- <Window>→<Preferences>→<Java>→<Code Style>→<Code Templates> 으로 이동
- ^codetemplates.xml 다운로드
- 다운로드 받은 xml 파일을 import 기능을 이용하여 import한후 수정하여 사용한다.
2. Eclipse Code Fomatter
- Fomatter는 표준화된 프로젝트의 코딩 컨벤션을 쉽게 적용 할 수 있게 해준다.
- <Window>→<Preferences>→<Java>→<Code Style>→<Fomatter> 로 이동
- ^codeformatter.xml 다운로드
- 다운로드 받은 xml 파일을 import 기능을 이용하여 import한후 수정하여 사용한다.
3. Save Actions
- Save Actions를 이용하면 파일을 저장할 때 자동으로 Code Formatting 및 Organize Import 작업을 할 수 있다.
- <Window>→<Preferences>→<Java>→<Editor>→<Save Actions> 로 이동
- 아래와 같이 Format source code, Organize imports를 체크 한다.
4. Static Import를 편하게 사용하자
5. 기타 팁
- 다른 Workspace를 사용하기 : eclipse.exe -data D:\workspace\project
- 다른 Workspace로 이동 : <File>→<Switch Workspace>
- 특정 확장자의 연결된Editor를 변경 : <Window>→<Preferences>→<General>→<Editors>→<File Associations>
- 단축기 변경하기 : <Window>→<Preferences>→<General>→<Keys>
- 반복되는 코드를 템플릿으로 등록하기 : <Window>→<Preferences>→<Java>→<Editor> →<Templates>
- HOME
- [종료]구루비 Dev 스터디
- 2012년 하반기 - 자바기반의 웹 개발 멘토링 스터디
- eclipse 유용한 TIP 소개